# -*- coding: utf-8 -*-
'''
按键码对应的按键名
@author: lowzoom
'''

name = {
	0x01:'SC_ESCAPE',
	0x02:'SC_1',
	0x03:'SC_2',
	0x04:'SC_3',
	0x05:'SC_4',
	0x06:'SC_5',
	0x07:'SC_6',
	0x08:'SC_7',
	0x09:'SC_8',
	0x0A:'SC_9',
	0x0B:'SC_0',
	0x0C:'SC_MINUS', # - on main keyboard
	0x0D:'SC_EQUALS',
	0x0E:'SC_BACK', # backspace
	0x0F:'SC_TAB',
	0x10:'SC_Q',
	0x11:'SC_W',
	0x12:'SC_E',
	0x13:'SC_R',
	0x14:'SC_T',
	0x15:'SC_Y',
	0x16:'SC_U',
	0x17:'SC_I',
	0x18:'SC_O',
	0x19:'SC_P',
	0x1A:'SC_LBRACKET',
	0x1B:'SC_RBRACKET',
	0x1C:'SC_RETURN', # Enter on main keyboard
	0x1D:'SC_LCONTROL',
	0x1E:'SC_A',
	0x1F:'SC_S',
	0x20:'SC_D',
	0x21:'SC_F',
	0x22:'SC_G',
	0x23:'SC_H',
	0x24:'SC_J',
	0x25:'SC_K',
	0x26:'SC_L',
	0x27:'SC_SEMICOLON',
	0x28:'SC_APOSTROPHE',
	0x29:'SC_GRAVE', # accent
	0x2A:'SC_LSHIFT',
	0x2B:'SC_BACKSLASH',
	0x2C:'SC_Z',
	0x2D:'SC_X',
	0x2E:'SC_C',
	0x2F:'SC_V',
	0x30:'SC_B',
	0x31:'SC_N',
	0x32:'SC_M',
	0x33:'SC_COMMA',
	0x34:'SC_PERIOD', # . on main keyboard
	0x35:'SC_SLASH', # / on main keyboard
	0x36:'SC_RSHIFT',
	0x37:'SC_MULTIPLY', # * on numeric keypad
	0x38:'SC_LMENU', # left Alt
	0x39:'SC_SPACE',
	0x3A:'SC_CAPITAL',
	0x3B:'SC_F1',
	0x3C:'SC_F2',
	0x3D:'SC_F3',
	0x3E:'SC_F4',
	0x3F:'SC_F5',
	0x40:'SC_F6',
	0x41:'SC_F7',
	0x42:'SC_F8',
	0x43:'SC_F9',
	0x44:'SC_F10',
	0x45:'SC_PAUSE', # Pause
	0x46:'SC_SCROLL', # Scroll Lock
	0x47:'SC_NUMPAD7',
	0x48:'SC_NUMPAD8',
	0x49:'SC_NUMPAD9',
	0x4A:'SC_SUBTRACT', # - on numeric keypad
	0x4B:'SC_NUMPAD4',
	0x4C:'SC_NUMPAD5',
	0x4D:'SC_NUMPAD6',
	0x4E:'SC_ADD', # + on numeric keypad
	0x4F:'SC_NUMPAD1',
	0x50:'SC_NUMPAD2',
	0x51:'SC_NUMPAD3',
	0x52:'SC_NUMPAD0',
	0x53:'SC_DECIMAL', # . on numeric keypad
	0x56:'SC_OEM_102', # < > | on UK/Germany keyboards
	0x57:'SC_F11',
	0x58:'SC_F12',
	0x64:'SC_F13', # (NEC PC98)
	0x65:'SC_F14', # (NEC PC98)
	0x66:'SC_F15', # (NEC PC98)
	0x70:'SC_KANA', # (Japanese keyboard)
	0x73:'SC_ABNT_C1', # / ? on Portugese (Brazilian) keyboards
	0x79:'SC_CONVERT', # (Japanese keyboard)
	0x7B:'SC_NOCONVERT', # (Japanese keyboard)
	0x7D:'SC_YEN', # (Japanese keyboard)
	0x7E:'SC_ABNT_C2', # Numpad . on Portugese (Brazilian) keyboards
	0x8D:'SC_NUMPADEQUALS', #:'on numeric keypad (NEC PC98)
	0x90:'SC_PREVTRACK', # Previous Track (SC_CIRCUMFLEX on Japanese keyboard)
	0x91:'SC_AT', # (NEC PC98)
	0x92:'SC_COLON', # (NEC PC98)
	0x93:'SC_UNDERLINE', # (NEC PC98)
	0x94:'SC_KANJI', # (Japanese keyboard)
	0x95:'SC_STOP', # (NEC PC98)
	0x96:'SC_AX', # (Japan AX)
	0x97:'SC_UNLABELED', # (J3100)
	0x99:'SC_NEXTTRACK', # Next Track
#	0x9C:'SC_NUMPADENTER', # Enter on numeric keypad
#	0x9D:'SC_RCONTROL',
	0xA0:'SC_MUTE', # Mute
	0xA1:'SC_CALCULATOR', # Calculator
	0xA2:'SC_PLAYPAUSE', # Play / Pause
	0xA4:'SC_MEDIASTOP', # Media Stop
	0xAE:'SC_VOLUMEDOWN', # Volume -
	0xB0:'SC_VOLUMEUP', # Volume +
	0xB2:'SC_WEBHOME', # Web home
	0xB3:'SC_NUMPADCOMMA', # ', on numeric keypad (NEC PC98)
#	0xB5:'SC_DIVIDE', # / on numeric keypad
	0xB7:'SC_SYSRQ',
#	0xB8:'SC_RMENU', # right Alt
# 0xC5:'SC_NUMLOCK',
#	0xC7:'SC_HOME', # Home on arrow keypad
#	0xC8:'SC_UP', # UpArrow on arrow keypad
#	0xC9:'SC_PRIOR', # PgUp on arrow keypad
#	0xCB:'SC_LEFT', # LeftArrow on arrow keypad
#	0xCD:'SC_RIGHT', # RightArrow on arrow keypad
#	0xCF:'SC_END', # End on arrow keypad
#	0xD0:'SC_DOWN', # DownArrow on arrow keypad
#	0xD1:'SC_NEXT', # PgDn on arrow keypad
#	0xD2:'SC_INSERT', # Insert on arrow keypad
#	0xD3:'SC_DELETE', # Delete on arrow keypad
	0xDB:'SC_LWIN', # Left Windows key
	0xDC:'SC_RWIN', # Right Windows key
#	0xDD:'SC_APPS', # AppMenu key
	0xDE:'SC_POWER', # System Power
	0xDF:'SC_SLEEP', # System Sleep
	0xE3:'SC_WAKE', # System Wake
	0xE5:'SC_WEBSEARCH', # Web Search
	0xE6:'SC_WEBFAVORITES', # Web Favorites
	0xE7:'SC_WEBREFRESH', # Web Refresh
	0xE8:'SC_WEBSTOP', # Web Stop
	0xE9:'SC_WEBFORWARD', # Web Forward
	0xEA:'SC_WEBBACK', # Web Back
	0xEB:'SC_MYCOMPUTER', # My Computer
	0xEC:'SC_MAIL', # Mail
	0xED:'SC_MEDIASELECT', # Media Select

	0x11C:'SC_NUMPADENTER', # Enter on numeric keypad
	0x11D:'SC_RCONTROL',
	0x135:'SC_DIVIDE', # / on numeric keypad
	0x138:'SC_RMENU', # right Alt
	0x145:'SC_NUMLOCK',
	0x147:'SC_HOME', # Home on arrow keypad
	0x148:'SC_UP', # UpArrow on arrow keypad
	0x149:'SC_PRIOR', # PgUp on arrow keypad
	0x14B:'SC_LEFT', # LeftArrow on arrow keypad
	0x14D:'SC_RIGHT', # RightArrow on arrow keypad
	0x14F:'SC_END', # End on arrow keypad
	0x150:'SC_DOWN', # DownArrow on arrow keypad
	0x151:'SC_NEXT', # PgDn on arrow keypad
	0x152:'SC_INSERT', # Insert on arrow keypad
	0x153:'SC_DELETE', # Delete on arrow keypad
	0x15D:'SC_APPS', # AppMenu key
}
